package com.ttg.model.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 银行产品余额数据表
 * @author zhy
 * @date 2024/04/16 14:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_bank_product_data_info")
public class BankProductDataInfo implements Serializable {


    private static final long serialVersionUID = -8526351966097056748L;
    /**
     * id
     */
    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    /**
     * 客户号
     */
    @TableField(value = "cst_id")
    private String cstId;


    /**
     * 机构号
     */
    @TableField(value = "agent_no")
    private String agentNo;


    /**
     * 产品号
     */
    @TableField(value = "product_no")
    private String productNo;


    /**
     * 类型
     */
    @TableField(value = "type")
    private String type;


    /**
     * 期限
     */
    @TableField(value = "deadline")
    private String deadline;


    /**
     * 时点余额
     */
    @TableField(value = "amount_time")
    private BigDecimal amountTime;


    /**
     * 周均余额
     */
    @TableField(value = "weeks_average_amount")
    private BigDecimal weeksAverageAmount;

    /**
     * 实际周均余额
     */
    @TableField(value = "weeks_real_average_amount")
    private BigDecimal weeksRealAverageAmount;


    /**
     * 月均存款
     */
    @TableField(value = "monthly_amount")
    private BigDecimal monthlyAmount;

    /**
     * 实际月均存款
     */
    @TableField(value = "monthly_real_amount")
    private BigDecimal monthlyRealAmount;


    /**
     * 季均余额
     */
    @TableField(value = "quartertly_amount")
    private BigDecimal quartertlyAmount;

    /**
     * 实际季均余额
     */
    @TableField(value = "quartertly_real_amount")
    private BigDecimal quartertlyRealAmount;


    /**
     * 年均存款
     */
    @TableField(value = "year_amount")
    private BigDecimal yearAmount;

    /**
     * 实际年均存款
     */
    @TableField(value = "year_real_amount")
    private BigDecimal yearRealAmount;


    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDate updateTime;
    
}
